<template>
  <div class="demo">
    <h1>vuex案例</h1>
    <hr>
    <h2>
      数据格式
      return Mock.mock({
        "data|3-10": [
          {
            'id|+1': 1,
            'title': "@ctitle()"
            'price|100-9999.2': 1.00,
            'sku|100-10000': 1
          }
        ]
      })
    </h2>
    <hr>
    <product-list/>
    <shopping-cart/>
  </div>
</template>
<script>
import ProductList from './ProductList'
import ShoppingCart from './ShoppingCart'

export default {
  name: 'demo20',
  components: {
    ProductList,
    ShoppingCart
  }
}
</script>
<style lang="less" scoped>
</style>
